﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EtiquetasStaff.aspx.cs" Inherits="SeCompUFSCarWeb.Administration.EtiquetasStaff" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Etiquetas Staff</title>
    <style>
        @font-face {
            font-family: MyriadPro;
            src: url('../fonts/MyriadPro-Regular.otf');
        }

        .IDLabel {
            font-size: 20px;
            font-weight:bold;
            text-align:center;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:SqlDataSource ID="MySQLDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:DefaultConnection %>" ProviderName="<%$ ConnectionStrings:DefaultConnection.ProviderName %>" SelectCommand="select  upper(nome) as 'NOME', upper(posicao) as 'POSICAO' from secomp.staff;"></asp:SqlDataSource>

         <asp:DataList ID="etiquetas" runat="server" CellPadding="0" DataSourceID="MySQLDataSource" RepeatColumns="2" RepeatDirection="Horizontal" ShowFooter="False" ShowHeader="False" Font-Bold="False" Font-Italic="False" Font-Names="Myriad Pro" Font-Overline="False" Font-Strikeout="False" Font-Underline="False">
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="Black" HorizontalAlign="Center" VerticalAlign="Middle" Width="400px" Height="254px" />
                <ItemTemplate>
                    <asp:Label ID="NOMELabel" runat="server" Font-Size="30px" Text='<%# Eval("NOME") %>' />
                    <br />
                    <asp:Image ID="IDImage" runat="server" ImageUrl='<%# "http://chart.apis.google.com/chart?cht=qr&chs=120x120&chl=" + Eval("NOME") + "&chld=H|0" %>' />
                    <br />
                    <asp:Label ID="IDLabel" runat="server" CssClass="IDLabel" Text='<%# Eval("POSICAO") %>' />
                    <br />
                    <br />
                </ItemTemplate>
                <SeparatorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
            </asp:DataList>

        </div>
    </form>
</body>
</html>
